package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DirectMailGoodsShoppingCartExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DirectMailGoodsShoppingCartExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DirectMailGoodsShoppingCartExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DirectMailGoodsShoppingCartExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DirectMailGoodsShoppingCartExample example = new DirectMailGoodsShoppingCartExample();
        return example.createCriteria();
    }

    public DirectMailGoodsShoppingCartExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DirectMailGoodsShoppingCartExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DirectMailGoodsShoppingCartExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsShoppingCartExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsShoppingCartExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCartIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.CartId is null");
            return (Criteria) this;
        }

        public Criteria andCartIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.CartId is not null");
            return (Criteria) this;
        }

        public Criteria andCartIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId =", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId <>", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId >", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId >=", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId <", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.CartId <=", value, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CartId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCartIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.CartId in", values, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.CartId not in", values, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.CartId between", value1, value2, "cartId");
            return (Criteria) this;
        }

        public Criteria andCartIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.CartId not between", value1, value2, "cartId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.UserId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.UserId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.UserId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.UserId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.UserId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.UserId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.GoodsId is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.GoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.GoodsId <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.GoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.GoodsId in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.GoodsId not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.GoodsId between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.GoodsId not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId is null");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId =", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId <>", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId >", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId >=", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId <", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId <=", value, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailGoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId in", values, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId not in", values, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId between", value1, value2, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andDirectMailGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.DirectMailGoodsId not between", value1, value2, "directMailGoodsId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.ProductId is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.ProductId is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.ProductId <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.ProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.ProductId in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.ProductId not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.ProductId between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.ProductId not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdIsNull() {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId is null");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId is not null");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId =", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId <>", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId >", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId >=", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId <", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId <=", value, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.DirectMailProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId in", values, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId not in", values, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId between", value1, value2, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andDirectMailProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.DirectMailProductId not between", value1, value2, "directMailProductId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("directmailgoodsshoppingcart.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNull() {
            addCriterion("directmailgoodsshoppingcart.SpecNames is null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.SpecNames is not null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames =", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames <>", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames >", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames >=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames <", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames <=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.SpecNames <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLike(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.SpecNames not like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.SpecNames in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.SpecNames not in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.SpecNames between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.SpecNames not between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("directmailgoodsshoppingcart.Image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.Image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.Image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.Image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.Image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.Image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.Image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.Image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Image <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("directmailgoodsshoppingcart.Image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.Image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.Image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.Image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.Image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.Image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("directmailgoodsshoppingcart.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryIsNull() {
            addCriterion("directmailgoodsshoppingcart.IsTemporary is null");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.IsTemporary is not null");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary =", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryNotEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary <>", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryGreaterThan(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary >", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryGreaterThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary >=", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryLessThan(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary <", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryLessThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary <=", value, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.IsTemporary <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsTemporaryIn(List<Boolean> values) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary in", values, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryNotIn(List<Boolean> values) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary not in", values, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary between", value1, value2, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andIsTemporaryNotBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsshoppingcart.IsTemporary not between", value1, value2, "isTemporary");
            return (Criteria) this;
        }

        public Criteria andBuyNumberIsNull() {
            addCriterion("directmailgoodsshoppingcart.BuyNumber is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumberIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.BuyNumber is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumberEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber =", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber <>", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber >", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber >=", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThan(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber <", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber <=", value, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.BuyNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBuyNumberIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber in", values, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotIn(List<Integer> values) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber not in", values, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber between", value1, value2, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andBuyNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsshoppingcart.BuyNumber not between", value1, value2, "buyNumber");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNull() {
            addCriterion("directmailgoodsshoppingcart.CurrencyType is null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.CurrencyType is not null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType =", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType <>", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType >", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType >=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType <", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType <=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CurrencyType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLike(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType not like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType not in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.CurrencyType not between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNull() {
            addCriterion("directmailgoodsshoppingcart.RetailPrice is null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.RetailPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice =", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice <>", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThan(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice >", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice >=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThan(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice <", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice <=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.RetailPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice not in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsshoppingcart.RetailPrice not between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNull() {
            addCriterion("directmailgoodsshoppingcart.TotalPrice is null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.TotalPrice is not null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice =", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice <>", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThan(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice >", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice >=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThan(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice <", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice <=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.TotalPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTotalPriceIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotIn(List<BigDecimal> values) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice not in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("directmailgoodsshoppingcart.TotalPrice not between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("directmailgoodsshoppingcart.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsshoppingcart.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("directmailgoodsshoppingcart.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("directmailgoodsshoppingcart.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsshoppingcart.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsshoppingcart.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("directmailgoodsshoppingcart.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsshoppingcart.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsshoppingcart.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsshoppingcart.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsshoppingcart.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("directmailgoodsshoppingcart.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsshoppingcart.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("directmailgoodsshoppingcart.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("directmailgoodsshoppingcart.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DirectMailGoodsShoppingCart.Column column) {
            addCriterion(new StringBuilder("directmailgoodsshoppingcart.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsshoppingcart.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DirectMailGoodsShoppingCartExample example;

        protected Criteria(DirectMailGoodsShoppingCartExample example) {
            super();
            this.example = example;
        }

        public DirectMailGoodsShoppingCartExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DirectMailGoodsShoppingCart.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DirectMailGoodsShoppingCart.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsShoppingCartExample example);
    }
}